package com.hiyee.api.controller.admin;

import com.hiyee.pojo.bo.AdminUserLoginBO;
import com.hiyee.response.ResponseJsonResult;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

@RequestMapping("auth")
public interface AuthControllerApi {
    /**
     * 管理员登录
     *
     * @param AdminUserLoginBO adminUserLoginBO
     * @return ResponseJsonResult
     */
    @PostMapping("/login")
    public ResponseJsonResult login(@RequestBody @Valid AdminUserLoginBO adminUserLoginBO);
}
